@import url('https://fonts.googleapis.com/css?family=Roboto:700');
@keyframes showTopText {
  0% { transform: translate3d(0, 100%, 0); }
  40%, 60% { transform: translate3d(0, 50%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes showBottomText {
  0% { transform: translate3d(0, -100%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.animated-title {
  color: #222;
  font-family: Roboto, Arial, sans-serif;
  height: 90vmin;
  left: 30%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vmin;
}
.animated-title > div {
  height: 50%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}
.animated-title > div div {
  font-size: 6rem;
  line-height: 7rem;
  padding:  0;
  position: absolute;
}
.animated-title > div div span {
  display: block;
}
.animated-title > div.text-top {

  top: 0;
}
.animated-title > div.text-top div {
  animation: showTopText 1s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  bottom: 0;
  transform: translate(0, 100%);
}
.animated-title > div.text-top div span:first-child {
  color: #767676;
}
.animated-title > div.text-bottom {
  bottom: 0;
}
.animated-title > div.text-bottom div {
  animation: showBottomText 0.5s;
  animation-delay: 1.75s;
  animation-fill-mode: forwards;
  top: 0;
  transform: translate(0, -100%);
}



/*-------------slide 2 text animation-------------*/

.animated-title-2 {
  color: #222;
  font-family: Roboto, Arial, sans-serif;
  height: 90vmin;
  left: 60%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vmin;
}
.animated-title-2 > div {
  height: 50%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}
.animated-title-2 > div div {
  font-size: 6rem;
  line-height: 7rem;
  padding:  0;
  position: absolute;
}
.animated-title-2 > div div span {
  display: block;
}
.animated-title-2 > div.text-top {

  top: 0;
}
.animated-title-2 > div.text-top div {
  animation: showTopText 1s;
  animation-delay: 3.5s;
  animation-fill-mode: forwards;
  bottom: 0;
  transform: translate(0, 100%);
}
.animated-title-2 > div.text-top div span:first-child {
  color: #767676;
}
.animated-title-2 > div.text-bottom {
  bottom: 0;
}
.animated-title-2 > div.text-bottom div {
  animation: showBottomText 0.5s;
  animation-delay: 4.75s;
  animation-fill-mode: forwards;
  top: 0;
  transform: translate(0, -100%);
}

/*-------------slider 3 text animation -----------------------*/


.animated-title-3 {
  color: #222;
  font-family: Roboto, Arial, sans-serif;
  height: 90vmin;
  left: 30%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vmin;
}
.animated-title-3 > div {
  height: 50%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}
.animated-title-3 > div div {
  font-size: 6rem;
  line-height: 7rem;
  padding:  0;
  position: absolute;
}
.animated-title-3 > div div span {
  display: block;
}
.animated-title-3 > div.text-top {

  top: 0;
}
.animated-title-3 > div.text-top div {
  animation: showTopText 1s;
  animation-delay: 7.5s;
  animation-fill-mode: forwards;
  bottom: 0;
  transform: translate(0, 100%);
}
.animated-title-3 > div.text-top div span:first-child {
  color: #767676;
}
.animated-title-3 > div.text-bottom {
  bottom: 0;
}
.animated-title-3 > div.text-bottom div {
  animation: showBottomText 0.5s;
  animation-delay: 8.75s;
  animation-fill-mode: forwards;
  top: 0;
  transform: translate(0, -100%);
}

/*-------------- slider 4 text animation ----------------*/

.animated-title-4 {
  color: #222;
  font-family: Roboto, Arial, sans-serif;
  height: 90vmin;
  right: 0;
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  width: 90vmin;
}
.animated-title-4 > div {
  height: 50%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}
.animated-title-4 > div div {
  font-size: 6rem;
  line-height: 7rem;
  padding:  0;
  position: absolute;
}
.animated-title-4 > div div span {
  display: block;
}
.animated-title-4 > div.text-top {
  text-align: left;
  top: 0;
}
.animated-title-4 > div.text-top div {
  animation: showTopText 1s;
  animation-delay: 11.5s;
  animation-fill-mode: forwards;
  bottom: 0;
  transform: translate(0, 100%);
}
.animated-title-4 > div.text-top div span:first-child {
  color: #767676;
}
.animated-title-4 > div.text-bottom {
  bottom: 0;
}
.animated-title-4 > div.text-bottom div {
  animation: showBottomText 0.5s;
  animation-delay: 12.75s;
  animation-fill-mode: forwards;
  top: 0;
  transform: translate(0, -100%);
}